package com.yunxin.core.domain.model.channel;

/**
 * @author zero°
 * @since 2023-07-17
 */
public interface ChannelPromotionCustomConfigRepository {

    /**
     * 保存
     * @param channelPromotionCustomConfig channelPromotionCustomConfig
     * @return boolean
     */
    boolean saveChannelPromotionCustomConfig(ChannelPromotionCustomConfig channelPromotionCustomConfig);

    /**
     * 更新
     * @param channelPromotionCustomConfig channelPromotionCustomConfig
     * @return boolean
     */
    boolean updateChannelPromotionCustomConfig(ChannelPromotionCustomConfig channelPromotionCustomConfig);

    /**
     * 根据推广id获取
     * @param promotionId promotionId
     * @return ChannelPromotionCustomConfig
     */
    ChannelPromotionCustomConfig getByPromotionId(Long promotionId);
}
